'''
使用正则获取网页上特定图片
'''
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re

html = urlopen("http://www.ivsky.com/bizhi/fengjing/")
bsObj = BeautifulSoup(html, "html.parser")


images = bsObj.findAll("img", {"src":re.compile("http\:\/\/img\.ivsky\.com\/img\/bizhi\/li\/[0-9]*\/[0-9]*\/.*\.jpg")})
for x in images:
    print(x["src"])